Registered Member
|
Hi,
I try to use SelfAdjointEigenSolver<MatrixXcd> to decompose a pure imaginary Selfadjoint matrix. However the result shows, by multiply eigenvector*eigenvalue.diag*eigenvector.transpose, it produces a simply symmetric matrix, instead of a selfadoint one. Is the SelfAdjointEigenSolver only suitable for symmetric matrix, not for complex selfadjoint one? Or is there anything wrong with my code? Thank you.
|
Moderator
|
You have to use .adjoint() instead of .transpose()
|
Registered Member
|
...Thank you very much ggael. |
Registered users: abc72656, Bing [Bot], Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]